//
//  BanBu_SmileViewAPI.h
// Halfarea
//
//  Created by Wang Xj on 14-3-19.
//
//

#ifndef Koochat_BanBu_SmileViewAPI_h
#define Koochat_BanBu_SmileViewAPI_h

#define DownloadInfoPath [AppComManager pathForFolder:@"downloadInfo.dat"]
#define CollectEmoInfoPath [AppComManager pathForFolder:@"collectInfo.dat"]
#define CollectedAmsgInfoPath [AppComManager pathForFolder:@"manuscript.dat"]


#define CollectionFolder    @"Collection"
#define ManuscriptFolder    @"Manuscript"
#define KSetAddButtonHidden @"setAddButtonHidden"

typedef enum
{
    SmileViewSmileType = 0,         //小表情
    SmileViewCharactersPaintedType, //符号
    SmileViewAddType,               //加号键盘
} SmileViewType;

typedef enum
{
    KeyboardTypeAdd = 0,           //加号键盘
    KeyboardTypeEmo = 0,           //表情键盘
} KeyboardType;


typedef enum
{
    ButtonTypeDownload = 0,//下载，（已付费表情）
    ButtonTypeDownloaded,//已下载
    ButtonTypeFee,//付费表情（未付费）
    ButtonTypeFree//免费表情（未下载）
}ButtonType;


static NSString * const BanBu_AddCollectEmo_ByUser = @"/_user_chat/_add_fav_item_byuser.php?jsonfrom=";               //增加一个收藏的表情

static NSString * const BanBu_DelCollectEmo_ByUser = @"/_user_chat/_del_fav_item_byuser.php?jsonfrom=";               //删除一个收藏的表情


//2014年11月04日10:17:10 by yinlinlin 防止重复收藏
#define KeyLocalUrl @"keyof"   //收藏唯一标示符
//

#define KeyIsNew    @"isnew"   //表情是否是最新版
#define Keyid       @"id"      //表情包id
#define KeyName     @"name"    //表情名
#define KeyCount    @"count"   //表情包中的数量
#define KeyFeeState @"feeState"//是否收费
#define KeyFee      @"fee"      //收费的数量
#define KeyPayState @"payState"//是否已付过费收费
#define KeyPath     @"path"     //下载路径
#define KeyContent1 @"content"  //简介、详情
#define KeyDownloadTime     @"downloadTime"    //表情名
#define KeyExtension     @"extension"    //表情后缀
#define KeyFavid       @"favid"      //表情包id

#define KeyDownloadState    @"downloadState"//下载状态
#define KeyIndex            @"index"        //下载后表情包在表情键盘显示的索引号
#define KeycachePath        @"cachePath"    //下载后本地路径
#define KeyFaceUrl          @"faceUrl"      //封面图片路径


#define KRefreshCollectedEmo @"refreshCollectedEmo"//刷新收藏的表情键盘
#define KRefreshDownloadedEmo @"refreshDownloadedEmo"//刷新下载的表情键盘
#define KRefreshDownloadedEmoType @"refreshDownloadedEmoType"//刷新下载的表情键盘
#define KFinishDownloadingEmo @"finishDownloadingEmo"   //表情下载完成
#endif